package org.exam.system.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.exam.system.domain.Employee;
import org.exam.system.domain.Role;
import org.exam.system.query.EmployeeQuery;

import java.util.List;


@Mapper
public interface EmployeeMapper {
    void add(Employee employee);

    void delete(Long id);

    Employee get(Long id);

    List<Employee> getAll();

    void update(Employee employee);

    void patchDelete(Long[] ids);


    List<Employee> queryPage(EmployeeQuery employeeQuery);

    List<Role> findRoleByEmployeeId(Long id);

    void addEmployeeRole(Employee employee);

    void deleteRoleByEmployeeId(Long id);
}
